package com.nameli.SIM.mapper;

import com.nameli.SIM.bean.entity.DepartmentInfo;
import com.nameli.SIM.bean.query.DepartQuery;
import com.nameli.SIM.bean.vo.DepartmentVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author NAME-L
 * @Description 部门信息Mapper接口
 * @className DepartmentInfoMapper
 * @date 2021-11-01 16:09:05
 */
@Mapper
public interface DepartmentInfoMapper {
    /**
     * 根据部门编号查询内容
     * @return
     */
    List<Map<String, Object>> queryByDepartMentNo();

    /**
     * 查询所有部门信息
     * @return
     */
    List<DepartmentVO> queryAllDepart();

    /**
     * 根据条件查询部门信息
     * @param departQuery
     * @return
     */
    List<DepartmentVO> queryByCondition(DepartQuery departQuery);

    /**
     * 查询部门信息返给前端选择框
     * @return
     */
    List<DepartmentInfo> queryDepart();
}
